/* JAVASCRIPT FILE FOR USER MODULE 
 * Author: Elizar Flores
 * 
 * */

function displayComments(postId,userId)
{
  $.ajax({
        type: 'POST',
        url : '../ajax/ir_comments',
        data: { 
               postId : postId
              },
        success : function(res)
        {
          var container = $('#divComment'+postId);
              container.html(res);
              
              container.toggle('fast');   
              $('#txtComment'+postId).focus();
        }  
  });   
}

